﻿@model PagedList<RBS.Core.Model.P_Advertis_Payment>
@using Webdiyer.WebControls.Mvc
@{
    ViewBag.Title = "送菜券统计";
    Layout = "~/Views/Shared/_Layout.cshtml"; 
}
<script> 
</script> 
  
<!--导航栏-->
@{
@Html.Partial("_Location")
}
<!--/导航栏--> 
<!--工具栏-->
<div class="toolbar-wrap">
    <div id="floatHead" class="toolbar">
        <div class="l-list">
            <ul class="icon-list">
               
            </ul>
        </div>
        <div class="r-list">
            @using (Html.BeginForm("#", "Sys", new RouteValueDictionary { { "page", "" } }, FormMethod.Get))
            {
                <input id="kword" name="kword" type="text" class="keyword" value="@Request.QueryString["kword"]"/>
                <input type="submit" value="查询" class="btn-search" accesskey="S" /> 
            }
        </div>
    </div>
</div>
<!--/工具栏-->  
<!--列表-->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
    <tr>
      
        <th align="left">优惠券标题</th>
        <th align="left">菜名</th>
        <th align="center">有效期</th>
        <th align="center">发行数量</th>
        <th align="center">已领取数</th> 
        <th align="left">已使用数</th> 
    </tr>
    @if (null != ViewData.Model)
    {
        foreach (var item in ViewData.Model)
        {
        <tr>
            
            <td align="left">
                  @Html.ActionLink(@item.Crowd, "GiftUserList", new { apid = item.Id, Action1 = @RBS.Common.RBSEnums.ActionEnum.Show }) 
            </td>
            <td align="left"> 
               @Html.Raw("菜名：" + new RBS.Core.BLL.Hotel.H_Hotel_Cookbook().GetModelByCache(item.Denomination).Name + ""); 
            </td>
            <td align="center">
                @(string.Format("{0:yyyy-MM-dd}", item.ValidStartTime))至@(string.Format("{0:yyyy-MM-dd}", item.ValidEndTime))
            </td> 
            <td align="center">
                @Html.DisplayFor(modelItem => item.Quantity)
            </td>
            <td align="center">
                @Html.DisplayFor(modelItem => item.Gift) 
            </td> 
            <td align="left">
                 @Html.DisplayFor(modelItem => item.Used)
            </td>
          
        </tr>
        }
    }
</table>
<!--/列表-->

<!--内容底部-->
<div class="line20">
</div>
<div class="pagelist">
    <div class="l-btns">
        <span>显示</span> <span>10 条/页</span><span>共 @Model.TotalPageCount 页 @Model.TotalItemCount 条记录，当前为第 @Model.CurrentPageIndex 页</span>
    </div>
    @Html.Pager(Model, new PagerOptions { PageIndexParameterName = "page", ShowPageIndexBox = true, PageIndexBoxType = PageIndexBoxType.DropDownList, ShowGoButton = false, CurrentPagerItemWrapperFormatString = "<span class=\"current\">{0}</span>" }, new { id = "PageContent", @class = "default" })
    @section Scripts{@{Html.RegisterMvcPagerScriptResource();}}
</div> 
<!--/内容底部-->
 
 
 